<span class='search' >
<?php
        $condpager = '';
        if ($cond != ''){
            if ($kw != ''){
                $condpager = '&kw='.$kw; 
            }
            else if ($catkw != ''){
                $condpager = '&catkw='.$catkw; 
            }
        }        

	if ($currentpage > 1){
	  	if ($fid == -1){
            if ($tagkey != '' ){
                echo "<a  href=\"?page=",$currentpage-1,'&tag=',$tagkey, "\">上一页</a>";
            }else{
                echo "<a  href=\"?page=",$currentpage-1,$condpager, "\">上一页</a>";
            }
			
			}else{
				echo "<a  href=\"?fid=",$fid,"&page=",$currentpage-1, $condpager, "\">上一页</a>";
			
		}
	}
	?>
	
	&nbsp;&nbsp;
	  第
	<form  onsubmit="javasctipt:return goto();">
    	<input style='background-color: #A2C672;width:30px;' id='topage' onclick='se' type=text value="<?=$currentpage?>"></input>
  </form>页
  &nbsp;&nbsp;	
  <?php
	  if ($fid == -1){
            if ($tagkey != '' ){
                echo "<a  href=\"?page=",$currentpage+1,'&tag=',$tagkey, "\">下一页</a>";
            }else{
                echo "<a  href=\"?page=",$currentpage+1,$condpager, "\">下一页</a>";
            }
	    					
			
			}else{
				echo "<a  href=\"?fid=",$fid,"&page=",$currentpage+1,$condpager, "\">下一页</a>";
			
		}
	?>
  
 </span>
